package com.kaikeba.servlet.handler.adapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.kaikeba.servlet.handler.UserAddHandler;

public class UserAddAdapeter extends UserAddHandler implements HandlerAdapter {

	@Override
	public void dohandlerRequest(Object handler, HttpServletRequest req, HttpServletResponse resp) {
		if (handler instanceof UserAddHandler) {
			((UserAddHandler) handler).addUser(req, resp);
		}
	}

	@Override
	public boolean isSuport(Object handler) {
		if (handler instanceof UserAddHandler) {
			return true;
		}
		return false;
	}


}
